package com.iqiyi.pps.epg.core.service.vod;

import com.iqiyi.pps.epg.api.model.web.query.TFilter;
import com.iqiyi.pps.epg.api.model.web.query.TPage;
import com.iqiyi.pps.epg.api.model.web.vod.TVodEpisodeLogPage;
import com.iqiyi.pps.epg.api.model.web.vod.TVodLogPage;
import com.iqiyi.pps.epg.api.model.web.vod.TVodRecordPage;
import com.iqiyi.pps.epg.core.model.vod.VodEpisodeLog;
import com.iqiyi.pps.epg.core.model.vod.VodLog;
import com.iqiyi.pps.epg.core.model.vod.VodRecord;

import java.util.List;

/**
 * Created by karkarrotxu on 2017/5/8.
 */
public interface IVodService {

    public long saveLog(VodLog log);

    public TVodLogPage findLogPage(TPage page, TFilter filter);

    public long saveEpisodeLog(VodEpisodeLog log);

    public TVodEpisodeLogPage findEpisodeLogPage(TPage page, TFilter filter);

    public TVodRecordPage findRecordPage(TPage page, TFilter filter);

    public long addRecord(VodRecord entity);
    public void editRecord(VodRecord entity,boolean timeChange);
    public int delRecord(TFilter filter);
    public VodRecord findRecordById(long id);
    public List<VodRecord> findRecordList(TFilter filter);
   // public boolean checkInRange(int fatherId, String startTime, String endTime, long excludeId);
}
